package site.yunnong.atvris.common.enumeration;

/**
 * @author zjh
 * @date 2021/8/20 12:03
 */
public enum VideoTimeTypeEnum {
    
    ALL_LENGTH(0, "所有时长", -1L, Long.MAX_VALUE),
    ONE_MINITE(1, "1分钟以下", -1L, 60L),
    TEN_MINITE(2, "1-10分钟", 60L, 600L),
    HALF_HOUR(3, "10-30分钟", 600L, 18000L),
    OVER_HALF_HOUR(4, "30分钟以上", 18000L, Long.MAX_VALUE);
    
    private Integer value;
    
    private String desc;
    
    private Long leftSecondLimit;
    
    private Long rightSecondLimit;
    
    VideoTimeTypeEnum(Integer value, String desc, Long leftSecondLimit, Long rightSecondLimit) {
        this.value = value;
        this.desc = desc;
        this.leftSecondLimit = leftSecondLimit;
        this.rightSecondLimit = rightSecondLimit;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getValue() {
        return value;
    }
    
    public Long getLeftSecondLimit() {
        return leftSecondLimit;
    }
    
    public Long getRightSecondLimit() {
        return rightSecondLimit;
    }
}
